﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<hercules.Models.Produto>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Index</h2>

<p>
    <%: Html.ActionLink("Create New", "Create") %>
</p>
<table>
    <tr>
        <th>
            codigoBarra
        </th>
        <th>
            naturezaCFOP
        </th>
        <th>
            nome
        </th>
        <th>
            apelido
        </th>
        <th>
            ncm
        </th>
        <th>
            precoNota
        </th>
        <th>
            precoReal
        </th>
        <th>
            ipi
        </th>
        <th>
            unidade
        </th>
        <th>
            icms
        </th>
        <th>
            precoVenda
        </th>
        <th>
            descontoMaximo
        </th>
        <th>
            dataVencimento
        </th>
        <th>
            lote
        </th>
        <th></th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.codigoBarra) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.naturezaCFOP) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.nome) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.apelido) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.ncm) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.precoNota) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.precoReal) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.ipi) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.unidade) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.icms) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.precoVenda) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.descontoMaximo) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.dataVencimento) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.lote) %>
        </td>
        <td>
            <%: Html.ActionLink("Edit", "Edit", new { id=item.idProduto }) %> |
            <%: Html.ActionLink("Details", "Details", new { id=item.idProduto }) %> |
            <%: Html.ActionLink("Delete", "Delete", new { id=item.idProduto }) %>
        </td>
    </tr>
<% } %>

</table>

</asp:Content>
